import axios from 'axios'
// 获取验证码
const getCode = (sid) => {
  return axios.get("public/getCaptcha", {
    params: {
      sid: sid
    }
  });
}
//注册
const submitReg = (user) => {
  return axios.post("login/register", { ...user });
}

export {
  getCode,
  submitReg
}